<style>
	h4 {
		font-size:20px;
		font-weight:bold;
		margin:0px;
		margin-bottom:5px;
	}
	page{
		border:1px solid black;
	}
	p{
		margin:5px;
		font-size: 15px;
	}
	.header{
		width:95%;
		border-bottom:2px double black;
		padding:10px 0;
	}
	.header img{
		width:100px;
		height:auto;
	}
	.tblbtl {
		border: 1px solid black;
		width: 100%;
	}
	.tblbtl td, 
	.tblbtl th {
		border-bottom: 1px solid black;
		padding: 6px 6px;
		font-size: 15px;
	}
</style>
<page backtop="40mm" backbottom="10mm" backleft="1mm" backright="3mm">
    <page_header>
        <table style="width: 96%;" class="header" cellspacing=0 cellpadding=0 >
            <tr>
                <td style="text-align: left;   width: 10%"><img src='<?php base_url()?>asset/images/logo.jpg' /></td>
				<td style="text-align: center; width: 80%">
					<h4><?php echo $namaUniv;?></h4>
					<p><?php echo $alamatUniv;?></p>
					<p><?php echo $kotaUniv;?></p>
				</td>
                <td style="text-align: right;   width: 10%"><?php //echo date('d/m/Y'); ?></td>
            </tr>
        </table>
    </page_header>
    <page_footer>
        <table style="width: 100%; border-top: solid 1px black;">
            <tr>
                <td style="text-align: left;    width: 50%">STMIK BANDUNG </td>
                <td style="text-align: right;    width: 50%">page [[page_cu]]/[[page_nb]]</td>
            </tr>
        </table>
    </page_footer>
	<!--<table style="width:100%;">-->
<p align="center"><b>TRANSKRIP NILAI</b></p>
<br/>	
	<table>
		<tr>
			<td  align="left">Nama Mahasiswa</td>
			<td>:</td>
			<td  align="left" width="300"><?php echo $data_ipk[0]->nama;?></td>
			<td  align="left">Fakultas</td>
			<td>:</td>
			<td  align="left"><?php echo $data_ipk[0]->nama_fakultas;?></td>
		</tr> 		
		<tr>
			<td align="left">NIM</td>
			<td>:</td>
			<td  align="left"><?php echo $data_ipk[0]->nim;?></td>
			<td align="left">Program Studi</td>
			<td>:</td>
			<td  align="left"><?php echo $data_ipk[0]->nama_prodi;?></td>
		</tr>
	</table>
	<br/> 
	<div>
	<table width= "100%" border="0.5" bordercolor="#000000" class='tblbtl' cellspacing=0 cellpadding=0>
	  <tr>
		<th width="30" align="center">No</th>
		<th width="110" align="center">Kode Matakuliah</th>
		<th width="351" align="center">Matakuliah</th>
		<th width="65" align="center">SKS</th>
		<th width="65" align="center">Nilai</th>
		<!--<th width="65" align="center">AK</th>-->
		<!--td width="65">Kredit</td-->
	  </tr>
		<?php 
			$no = 1;
			$bobot_AK=0;
			$totsks=0;
			foreach ($data_pdf as $data){
			$totsks += $data->sks;
			$bobot_AK += $data->bobot_nilai * $data->sks;
		?>
	  <tr>
		<td><?php echo $no; ?></td>
		<td><?php echo $data->kd_matakuliah; ?></td>
		<td><?php echo $data->nama_matakuliah;?></td>
		<td><?php echo $data->sks;?></td>
		<td><?php echo $data->grade;?></td>
		<!--<td><?php echo $data->bobot_nilai * $data->sks;?></td>-->
		<!--<td>a</td>-->
	  </tr>
	  <?php 
		$no++;
	  } ?>
	</table>
	
	<table width= "100%"  border="0.5" bordercolor="#000000" class='tblbtl' cellspacing=0 cellpadding=0>
	  <tr>
		<th width="30"></th>
		<th width="110"></th>
		<th width="260"></th>
		<th width="65"></th>
		<th width="65"></th>
		<th width="65"></th>
	  </tr>
	  <tr>
		<td colspan="4">SKS yang ditempuh (SKS) </td>
		<td colspan="2" align="right"><?php echo $data_ipk[0]->totsks;?></td>
	  </tr>
	 <!-- <tr>
		<td colspan="4">Angka Kualitas (AK) </td>
		<td colspan="2" align="right"><?php echo $bobot_AK;?></td>
	  </tr>-->
	  <tr>
		<td colspan="4">Index Prestasi (IP) </td>
		<td colspan="2" align="right"><?php echo $data_ipk[0]->ips1;?></td>
	  </tr>
	</table>
	
	<br/>
	<table width= "100%" align="right" border="0" bordercolor="#000000" cellspacing=0 cellpadding=0>
		<tr>
			<td width="380">&nbsp;</td>
			<td align="center"><?php echo $kotaUniv;?>, <?php echo date('d-m-Y')?></td>
		</tr>
	</table>
	</div>
</page>